package org.zjx.data.screen;

import org.zjx.command.entity.screen.Room;
import org.zjx.data.BaseSceneBuilder;
import java.awt.*;

public class ChenChuanSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "沉船";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(80, 74);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        // 沉船场景没有直接放在场景中的NPC，所有NPC都在房间内
    }

    @Override
    protected void addRooms() {
        Room chenChuanNeiShi = createRoom("沉船内室", null);
        addNpcToRoom(chenChuanNeiShi, "商人的鬼魂", new Point(21, 11));
        rooms.add(chenChuanNeiShi);
    }

    @Override
    protected void addTeleports() {
        addSceneTeleport(new Point(22, 65), "东海海底", new Point(81, 61), new Point(20, 69));
        addSceneTeleport(new Point(71, 9), "沉船内室", new Point(13, 18), new Point(75, 4));

        addRoomTeleport(new Point(71, 9), "沉船内室", new Point(13, 18), new Point(75, 4));
    }

    public static void main(String[] args) {
        ChenChuanSceneBuilder builder = new ChenChuanSceneBuilder();
        builder.execute("chenchuan_scene.json", "沉船");
    }
}